package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.CheckItem;

import java.util.List;
import java.util.Map;

public interface CheckGroupDao {
    void add(CheckGroup checkGroup);

    void setCheckGroupAndCheckItem(Map<String, Integer> map) throws Exception;

    Page<CheckGroup> findPage(String queryString);

//    修改前回显数据
    List<CheckItem> findAllChecks() throws Exception;

    List<Integer> findCheckItemListAndCheckeGroup(Integer id) throws Exception;

    CheckGroup findById(Integer id) throws Exception;

    void delete(Integer id) throws Exception;

    void modify(CheckGroup checkGroup) throws Exception;

    List<CheckGroup> findAll() throws  Exception;

    List<CheckGroup>findCheckGroupById() throws Exception;
}
